import { openBuildService } from '../../helper/service'

// 值类型为String或Object,String为url(method),Object同axios(config)参数支持相同,data和params只能为对象类型
const settings = {
    //树形列表数据接口
    getTreeList: {
        url: '/adminc/v1/config_manage/b_syspara_sort/get_syspara_sort_list',
        method: 'get'
    },
    //表格数据接口
    getParamsList: {
        url: '/adminc/v1/config_manage/b_syspara/get_syspara_list',
        method: 'get'
    },
    //新增参数功能接口
    addParams: {
        url: '/adminc/v1/config_manage/b_syspara/create_syspara',
        method: 'post'
    },
    //删除参数功能接口
    deleteParams: {
        url: '/adminc/v1/config_manage/b_syspara/delete_syspara',
        method: 'delete'
    },
    //修改参数功能接口
    editParams: {
        url: '/adminc/v1/config_manage/b_syspara/update_syspara',
        method: 'put'
    },
    //树形菜单添加节点
    addTreeNode: {
        url: "/adminc/v1/config_manage/b_syspara_sort/create_syspara_sort",
        method: "post"
    },
    //树形菜单删除节点
    deleteTreeNode: {
        url: "/adminc/v1/config_manage/b_syspara_sort/delete_syspara_sort",
        method: "delete"
    },
    //树形菜单修改节点
    editTreeNode: {
        url: "/adminc/v1/config_manage/b_syspara_sort/update_syspara_sort",
        method: "put"
    },
}

export default openBuildService(settings)